package pong.game.location;

import java.util.Vector;

import pong.game.objects.DinamicObject;
import pong.game.objects.Handle;
import pong.game.objects.Washer;
import pong.game.user.Party;
import pong.general.GameType;
import android.graphics.Bitmap;
import android.graphics.Canvas;

public class LevelMap 
{
	int						heightWorld,
							widthWorld;
	Bitmap					background;
	
	public Vector<DinamicObject>	GameObjects;
	public Party					Top,
									Bottom;
	
	public LevelMap(Bitmap background)
	{
		this.background = background;
		heightWorld 	= background.getHeight();
		widthWorld		= background.getWidth();
		GameObjects		= new Vector<DinamicObject>();
		Top				= new Party();
		Bottom 			= new Party();
	}
	
	public void render(Canvas canvas)
	{
		canvas.drawBitmap(background, 0, 0, null);
		for(int q=0; q<GameObjects.size(); q++)
			GameObjects.get(q).render(canvas);
	}
	public void run()
	{
		for(int q=0; q<GameObjects.size(); q++)
			GameObjects.get(q).run(GameObjects);
	}
}
